/*
* @Author: LHY
* @Date:   2017-07-15 17:41:51
* @Last Modified by:   LHY
* @Last Modified time: 2017-07-15 17:43:19
*/

'use strict';

import gulp from 'gulp';
import gulpif from 'gulp-if';
import livereload from 'gulp-livereload';
import args from './util/args';

gulp.task('pages',()=>{
  return gulp.src('app/**/*.ejs')
    .pipe(gulp.dest('server'))
    .pipe(gulpif(args.watch,livereload()))
})
